package com.imu.purse.modules.trade.entity;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;

import com.imu.common.validator.group.UpdateGroup;
import com.imu.core.base.BaseEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;


/**
 * 
 * 
 * @author sunhongwei
 * @email sunhongwei@jshijian.com
 * @date 2018-03-31 12:04:14
 * Copyright (c) 2017 武汉极时间科技有限公司 版权所有 
 * Jshijian aloha CO.,LTD. All Rights Reserved. 
 */
@Data
@Table(name = "imu_fund")
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
public class FundEntity extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	//主键ID
	@Id
	@Column(name="id")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@NotNull(message="主键不存在无法更新", groups = {UpdateGroup.class})
	private Long id;
	
	//用户ID
	@Column(name="user_id")
	private Long userId;
	
	//余额
	@Column(name="money")
	private BigDecimal money;
	
	//锁定金额
	@Column(name="lock_money")
	private BigDecimal lockMoney;
	
	//用户钱包地址
	@Column(name="money_address")
	private String moneyAddress;
	
	//创建时间
	@Column(name="time_create")
	private Date timeCreate;
	
	//更新时间
	@Column(name="time_update")
	private Date timeUpdate;
	
	//冻结金额(转账时,冻结那部分钱)
	@Column(name = "FROZEN_MONEY")
	private BigDecimal frozenMoney;

	//密码,只是针对以太坊
	@Column(name = "password")
	private String password;
	
	//易买保
	@Column(name="bj")
	private BigDecimal bj;

	//交易员
	@Column(name="btc")
	private BigDecimal btc;

	//俱乐部锁仓
	@Column(name="hbb")
	private BigDecimal hbb;

	//智多星
	@Column(name="fcg")
	private BigDecimal fcg;

	//俱乐部
	@Column(name="hbc")
	private BigDecimal hbc;

	//KCT数量
	@Column(name="ico")
	private BigDecimal ico;

	//GET数量
	@Column(name="eth")
	private BigDecimal eth;

	//合营分
	@Column(name="fen")
	private BigDecimal fen;

	//贝壳
	@Column(name="cowry")
	private BigDecimal cowry;

    //锁仓易买宝数量
    @Column(name="LOCK_BJ")
    private BigDecimal lockbj;

    //锁仓智多星数量
    @Column(name="LOCK_FCG")
    private BigDecimal lockfcg;

    //锁仓KCT数量
    @Column(name="LOCK_ICO")
    private BigDecimal lockico;

    //锁仓GET数量
    @Column(name="LOCK_ETH")
    private BigDecimal locketh;

    //锁仓贝壳数量
    @Column(name="LOCK_COWRY")
    private BigDecimal lockcowry;

	
	@Transient
	private String phone;

	@Transient
	private Integer ytfType;
	
}
